package com.hnhuas.salary.modules.admin.service.impl;

import com.hnhuas.salary.common.utils.PageUtils;
import com.hnhuas.salary.common.utils.Query;
import com.hnhuas.salary.modules.admin.dao.SalaryNoticeDao;
import com.hnhuas.salary.modules.admin.entity.SalaryNoticeEntity;
import com.hnhuas.salary.modules.admin.entity.SalaryUserEntity;
import com.hnhuas.salary.modules.admin.service.SalaryNoticeService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("salaryNoticeService")
public class SalaryNoticeServiceImpl extends ServiceImpl<SalaryNoticeDao, SalaryNoticeEntity> implements SalaryNoticeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params,QueryWrapper<SalaryNoticeEntity> wrapper) {
        IPage<SalaryNoticeEntity> page = this.page(
                new Query<SalaryNoticeEntity>().getPage(params),
                wrapper
        );
        return new PageUtils(page);
    }

}
